package com.alvin.demo;

import com.alvin.demo.utils.NumberUtils;
import com.alvin.demo.utils.Tcp_Utils_Nio;

public class Test {
    public static void main(String[] args) throws Exception {
        // 01 03 00 00 00 02 c4 0b
        String s = NumberUtils.longToHexString(125475666L, 8);
        s = s + " " + "03 11 00" ;
        Tcp_Utils_Nio tcp_utils_nio = new Tcp_Utils_Nio() ;
        String result = tcp_utils_nio.sendCommand("192.168.4.102", 8886, s, 300 , "small");
        System.out.println(result);
    }
}
